<template>
    <div>
      详细订单
      <el-table :data="orderList">
        <el-table-column label="订单日期" prop="date" align="center"></el-table-column>
        <el-table-column label="服务项目" prop="operName"align="center"></el-table-column>
        <el-table-column label="订单金额" prop="money"align="center"></el-table-column>
        <el-table-column label="充值方式" prop="way"align="center"></el-table-column>
        <el-table-column label="患者" prop="patName"align="center"></el-table-column>
        <el-table-column label="医生" prop="doctName"align="center"></el-table-column>
      </el-table>
      充值记录
        <el-table :data="recargeList">
          <el-table-column label="充值时间" prop="date" align="center"></el-table-column>
          <el-table-column label="充值金额" prop="money"align="center"></el-table-column>
          <el-table-column label="充值方式" prop="way"align="center"></el-table-column>
          <el-table-column label="患者" prop="patName"align="center"></el-table-column>
          <el-table-column label="医生" prop="doctName"align="center"></el-table-column>
        </el-table>
    </div>
</template>

<script>
  import {queryOrders, queryPayments} from "@/api/system/orderdetail"
    export default {
        name: "index",
        data() {
            return {
              orderList:[],
              recargeList:[],
              doctor:{
                doctId:null
              },

            }
        },
      methods: {
        queryAllOrders:function () {
          queryOrders(this.doctor).then(resp=> {
            console.log(resp);
            this.orderList=resp;
          })
        },
        queryAllPayments:function () {
            queryPayments(this.doctor).then(resp=> {
              console.log(resp);
              this.recargeList=resp;
          })
        },
      },
      created() {
        this.queryAllOrders();
        this.queryAllPayments();
      }
    }
</script>

<style scoped>

</style>
